﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;

namespace SmartSite.Network
{
    public interface IAsyncSocket
    {
        event EventHandler<SocketStateEventArgs> OnReceived;
        event EventHandler<SocketErrorEventArgs> OnError;

        void StartReceiving();
        void StopReceiving();
        void SendTo(IPAddress remoteIP, byte[] buffer);
        void SendTo(EndPoint remoteEndPoint, byte[] buffer);
    }
}
